package cn.com.vs.service.domain;

import java.util.ArrayList;
import java.util.List;

public class Talk {
	private int id;
	private String message;
	private String attachment;
	private String createTime;
	private String type;
	private int settings;
	private int accessid;
	private int authorid;
	private String authorName;
	private String authorImg;
	private List<Comment> comments;
	private String cv;
	private int    flag;
	private String location;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getMessage() {
		return message;
	}
	public void setMessage(String message) {
		this.message = message;
	}
	public String getAttachment() {
		return attachment;
	}
	public void setAttachment(String attachment) {
		this.attachment = attachment;
	}
	public String getCreateTime() {
		return createTime;
	}
	public void setCreateTime(String createTime) {
		if( createTime!=null && createTime.length() > 19)
			this.createTime = createTime.substring(0,19);
		else
			this.createTime = createTime;
	}
	public int getSettings() {
		return settings;
	}
	public void setSettings(int settings) {
		this.settings = settings;
	}
	public int getAccessid() {
		return accessid;
	}
	public void setAccessid(int accessid) {
		this.accessid = accessid;
	}
	public int getAuthorid() {
		return authorid;
	}
	public void setAuthorid(int authorid) {
		this.authorid = authorid;
	}
	public List<Comment> getComments() {
		if( comments == null )
			comments = new ArrayList<Comment>();
		return comments;
	}
	public void setComments(List<Comment> comments) {
		this.comments = comments;
	}
	public String getType() {
		return type;
	}
	public void setType(String type) {
		this.type = type;
	}
	public String getAuthorName() {
		return authorName;
	}
	public void setAuthorName(String authorName) {
		this.authorName = authorName;
	}
	public String getAuthorImg() {
		return authorImg;
	}
	public void setAuthorImg(String authorImg) {
		this.authorImg = authorImg;
	}
	public String getCv() {
		return cv;
	}
	public void setCv(String cv) {
		this.cv = cv;
	}
	public int getFlag() {
		return flag;
	}
	public void setFlag(int flag) {
		this.flag = flag;
	}
	public String getLocation() {
		return location;
	}
	public void setLocation(String location) {
		this.location = location;
	}
}
